package TestsBuxfer;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;


/**
 * Created with IntelliJ IDEA.
 * User: C13T
 * Date: 12.07.13
 * Time: 19:17
 * To change this template use File | Settings | File Templates.
 */
public class Reports {
    public WebDriver driver;
  //  @Test


    public Reports(WebDriver driver){
        this.driver = driver;
    }
    public Reports ReportsPage() {
        WebElement TabReports = driver.findElement(By.id("tab-reports"));
        TabReports.click();
        return new Reports (driver);
    }

    public void CheckContent(){
        WebElement TextSettings = driver.findElement(By.linkText("Settings"));
        TextSettings.sendKeys(Keys.RETURN);
        WebElement TabReports = driver.findElement(By.id("tab-reports"));
      //  Assert.assertEquals(TabReports.getAttribute("class"),"tabTitle selected");
    }
}
